package com.hdw.med.bean.model;

import java.io.Serializable;
import java.util.Date;

public class BaseErrlog implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long idErrlog;

    private String msg;

    private String level;

    private Date dtSysCre;

    private String naLogger;

    private String des;

    public Long getIdErrlog() {
        return idErrlog;
    }

    public void setIdErrlog(Long idErrlog) {
        this.idErrlog = idErrlog;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg == null ? null : msg.trim();
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level == null ? null : level.trim();
    }

    public Date getDtSysCre() {
        return dtSysCre;
    }

    public void setDtSysCre(Date dtSysCre) {
        this.dtSysCre = dtSysCre;
    }

    public String getNaLogger() {
        return naLogger;
    }

    public void setNaLogger(String naLogger) {
        this.naLogger = naLogger == null ? null : naLogger.trim();
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des == null ? null : des.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BaseErrlog other = (BaseErrlog) that;
        return (this.getIdErrlog() == null ? other.getIdErrlog() == null : this.getIdErrlog().equals(other.getIdErrlog()))
            && (this.getMsg() == null ? other.getMsg() == null : this.getMsg().equals(other.getMsg()))
            && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
            && (this.getDtSysCre() == null ? other.getDtSysCre() == null : this.getDtSysCre().equals(other.getDtSysCre()))
            && (this.getNaLogger() == null ? other.getNaLogger() == null : this.getNaLogger().equals(other.getNaLogger()))
            && (this.getDes() == null ? other.getDes() == null : this.getDes().equals(other.getDes()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIdErrlog() == null) ? 0 : getIdErrlog().hashCode());
        result = prime * result + ((getMsg() == null) ? 0 : getMsg().hashCode());
        result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode());
        result = prime * result + ((getDtSysCre() == null) ? 0 : getDtSysCre().hashCode());
        result = prime * result + ((getNaLogger() == null) ? 0 : getNaLogger().hashCode());
        result = prime * result + ((getDes() == null) ? 0 : getDes().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", idErrlog=").append(idErrlog);
        sb.append(", msg=").append(msg);
        sb.append(", level=").append(level);
        sb.append(", dtSysCre=").append(dtSysCre);
        sb.append(", naLogger=").append(naLogger);
        sb.append(", des=").append(des);
        sb.append("]");
        return sb.toString();
    }
}